package com.ruoyi.framework.web.service;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Component;

import com.ruoyi.common.core.domain.model.LoginUser;


/**
 * 登录校验方法
 */
@Component
public class LoginService
{
    @Autowired
    private TokenService tokenService;

    public String login(LoginUser loginUser)
    {
        return tokenService.createToken(loginUser);
    }
}
